// 授课班级总数
getAllTeacherClassinfo();

function getAllTeacherClassinfo() {
	$.ajax({
		url: "http://localhost:8080/springend-sys/getAllTeacherClassinfo",
		type: "post",
		data: {
			tid: sessionStorage.getItem("tid")
		},
		dataType: "json",
		success: function(result) {
			// console.log(result);
			if (result.status == 0) {
				$("#getAllTeacherClassinfo").html('<p>' + result.data.length + '</p>');
			}
		}
	})
}
// 公告总条数 -- 公告信息
limitoneAffiche();

function limitoneAffiche() {
	$.ajax({
		url: "http://localhost:8080/springend-sys/limitoneAffiche",
		type: "post",
		data: {},
		dataType: "json",
		success: function(result) {
			// console.log(result);
			if (result.data.length > 0) {
				$("#limitoneAffiche").html('<p>' + result.data[0].countone + '</p>');
			}
		}
	})
}
// 某学生已提交作业
getAllTeacherCount();

function getAllTeacherCount() {
	$.ajax({
		url: "http://localhost:8080/springend-sys/getAllTeacherCount",
		type: "post",
		data: {
			tid: sessionStorage.getItem("tid")
		},
		dataType: "json",
		success: function(result) {
			// console.log(result);
			if (result.status == 0) {
				$("#getAllTeacherCount").html('<p>' + result.data + '</p>');
			}
		}
	})
}
getAllTeacherStu();

function getAllTeacherStu() {
	$.ajax({
		url: "http://localhost:8080/springend-sys/getAllTeacherStu",
		type: "post",
		data: {
			tid: sessionStorage.getItem("tid")
		},
		dataType: "json",
		success: function(result) {
			// console.log(result);
			if (result.status == 0) {
				$("#getAllTeacherStu").html('<p>' + result.data + '</p>');
			}
		}
	})
}
